import request from '@/utils/request'

// 查询分红收入列表
export function listInvestdividend(query) {
  return request({
    url: '/invest/asset/investdividend/list',
    method: 'get',
    params: query
  })
}

// 查询分红收入详细
export function getInvestdividend(id) {
  return request({
    url: '/invest/asset/investdividend/' + id,
    method: 'get'
  })
}

// 新增分红收入
export function addInvestdividend(data) {
  return request({
    url: '/invest/asset/investdividend',
    method: 'post',
    data: data
  })
}

// 修改分红收入
export function updateInvestdividend(data) {
  return request({
    url: '/invest/asset/investdividend',
    method: 'put',
    data: data
  })
}

// 删除分红收入
export function delInvestdividend(id) {
  return request({
    url: '/invest/asset/investdividend/' + id,
    method: 'delete'
  })
}

// 导出分红收入
export function exportInvestdividend(query) {
  return request({
    url: '/invest/asset/investdividend/export',
    method: 'get',
    params: query
  })
}
